package com.example.data.permission.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户权限表
 * </p>
 *
 * @author demo
 * @since 2021-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_permission")
@ApiModel(value="Permission对象", description="用户权限表")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "per_id", type = IdType.ID_WORKER)
    private String perId;

    @ApiModelProperty(value = "api权限资源")
    private String resource;

    @ApiModelProperty(value = "api权限名")
    private String perName;

    @ApiModelProperty(value = "权限父节点（0为根节点）")
    private String perParent;

    @ApiModelProperty(value = "状态：0禁用，1启用")
    private Integer status;

    @ApiModelProperty(value = "优先级，越大，同级显示的时候越靠前")
    private Integer priority;

    @ApiModelProperty(value = "备注")
    private String remark;


}
